_redisplay() {
this.removeAll();
this._loadApps();
- this._loadGrid();
+
+ this._allItems.sort(this._compareItems);
+ this._allItems.forEach(item => this._grid.addItem(item));
+ this.emit('view-loaded');
}
getAllItems() {
return a.name.localeCompare(b.name);
}
- _loadGrid() {
- this._allItems.sort(this._compareItems);
- this._allItems.forEach(item => this._grid.addItem(item));
- this.emit('view-loaded');
- }
-
_selectAppInternal(id) {
if (this._items[id])
this._items[id].actor.navigate_focus(null, St.DirectionType.TAB_FORWARD, false);
openFolderId = this._currentPopup._source.id;
super._redisplay();
+ this._refilterApps();
if (openFolderId) {
let [folderToReopen] = this.folderIcons.filter(folder => folder.id == openFolderId);
});
}
- _loadGrid() {
- super._loadGrid();
- this._refilterApps();
- }
-
// Overridden from BaseAppView
animate(animationDirection, onComplete) {
this._scrollView.reactive = false;